home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / access / outputas.zip / OUTPUTAS.TXT < prev   
Text File  |  1993-02-12  |  5KB  |  120 lines

  1. ------------------------------
  2. Saving Report Output to a File
  3. ------------------------------
  4.  
  5. Rather than previewing or printing a report in Microsoft Access, you may 
  6. want to save it in a file format that can be read by another program such 
  7. as a spreadsheet or word processor. By adding the Save Report As command 
  8. to your copy of Microsoft Access, you can save report output to the 
  9. following file formats:
  10.  
  11. * BIFF (binary interchange file format; Microsoft Excel version 3 
  12.   and later)
  13. * RTF (rich-text format; Microsoft standard document interchange)
  14. * ASCII (American Standard Code for Information Interchange; text-only 
  15.   format)
  16.  
  17. To add the Save Report As command
  18.     
  19. 1 Copy OUTPUTAS.DLL to the directory in which you store MSACCESS.EXE or 
  20.   to your Windows directory.
  21.  
  22. 2 Copy OUTPUTAS.MDA to the directory in which you store MSACCESS.EXE.
  23.  
  24. 3 In the MSACESS.INI file (stored in your Windows directory), add the 
  25.   following option to the [Libraries] section:
  26.  
  27.         c:\MyMicrosoftAccessDirectory\outputas.mda=ro
  28.  
  29. 4 Also in the MSACCESS.INI file, create a new section with the following 
  30.   information:
  31.  
  32.         [Menu Add-ins]
  33.         Save Report As==SaveReportAs()
  34.  
  35.   Note that you must enter two equal signs.
  36.  
  37. Before you can use the Save Report As command, you must restart 
  38. Microsoft Access.
  39.  
  40.  
  41. Saving a Report to a File Format
  42. --------------------------------
  43.  
  44. In Microsoft Access, you can create reports with complex layouts. However, 
  45. depending on which file format you save to, you may lose some or all of 
  46. the report's layout.
  47.  
  48. Using the Save Report As command, you can output data from a main report 
  49. but not from any subforms or subreports inserted in a report. Also, for 
  50. best results, make sure there are no overlapping controls in the 
  51. report. Although Microsoft Access includes the data from overlapping 
  52. controls in the file, you may not get the results you expect.
  53.  
  54. To save a report to a file format
  55.  
  56. 1 Open the database that contains the report you want to save to a file.
  57.  
  58. 2 From the Help menu, choose Save Report As.
  59.  
  60. 3 In the Select Report dialog box, select a report from the list, and then 
  61.   choose the OK button.
  62.  
  63.   (If there are reports in the database but none are listed,
  64.   you need to be assigned Read Data permission on the MSysObjects 
  65.   table.)
  66.  
  67. 4 In the Output As dialog box, type a name in the File Name box or select 
  68.   an existing file name from the list (if you want to overwrite it).
  69.  
  70. 5 Select a file type from List Files of Type. Microsoft Access automatically
  71.   changes the extension of the file name to match the file type, but you 
  72.   can override it by typing an extension in the File Name box.
  73.  
  74. 6 If you want to save the file in a different directory and drive, select 
  75.   them from the Directories and Drives lists, respectively.
  76.  
  77. 7 Choose the OK button.
  78.  
  79.  
  80. Saving to BIFF
  81. --------------
  82. When you save a report to BIFF, Microsoft Access includes only the data in 
  83. text boxes in the output. It preserves the data format (such as Currency) 
  84. and the text format (such as font, font size, and color). It also uses the 
  85. names in the ControlName property of the text boxes to fill the first row 
  86. in the spreadsheet. Because this file format creates one column in the 
  87. spreadsheet for each text box in the report, the overall layout of the 
  88. report may be lost.
  89.  
  90. Even if a value in a text box is longer than what can be displayed in the 
  91. text box, Microsoft Access includes the entire value. Note, however, that 
  92. Excel limits the number of characters in a cell to 255, so Microsoft Access 
  93. truncates text values longer than 255 characters when it creates the file.
  94.  
  95.  
  96. Saving to RTF
  97. -------------
  98. When you save a report to RTF, Microsoft Access preserves the layout of the
  99. report as much as possible. However, because Microsoft Word for Windows 
  100. works on a line-by-line basis, some reports may not look exactly like the 
  101. original Microsoft Access reports. 
  102.  
  103. Microsoft Access includes the data in text boxes and the text in labels in 
  104. the file. It preserves the data format (such as Currency) and the text 
  105. format (such as font, font size, and color). If a value in a text box 
  106. is longer than what can be displayed in the text box, Microsoft Access 
  107. includes only the amount displayed in the text box. 
  108.  
  109.  
  110. Saving to ASCII
  111. ---------------
  112. Saving a report to ASCII is similar to saving one to RTF. Microsoft Access 
  113. includes the data in text boxes and the text in labels in the file. It also 
  114. preserves the data format (such as Currency), but does not save text format
  115. such as color, font, and font size. 
  116.  
  117. If a value in a text box is longer than can be displayed in the text box, 
  118. Microsoft Access includes only the amount displayed in the text box. 
  119.  
  120.